
if exists(select name from sysobjects where name = 'sp_TinGetByTinId')
	drop proc sp_TinGetByTinId
go
/*
	Created by: Phuoc NH
	Created on: 04/012/2013 (dd/mm/yyyy)
	Description: 
	--

	File:$sql-scripts/Proc.sp_TinGetByTinId.sql
*/

create proc sp_TinGetByTinId
@TinId int
as
begin
	select * from Tin where TinId=@TinId and TrangThai!=255
end

